package com.example.adapter.demo.login.v3;

import com.example.adapter.demo.login.v3.adapter.AbstractAdapter;
import com.example.adapter.demo.login.v3.adapter.ILoginAdapter;

/**
 * @author zhoubin
 */
public class PassportForThirdAdapter implements IPassportForThird {

    @Override
    public ResultMsg loginForThird(AbstractAdapter abstractAdapter) {
        if (abstractAdapter.support(abstractAdapter)) {
            return abstractAdapter.login();
        } else {
            return null;
        }
    }

}
